package com.link2room.cms.facade;

import com.link2room.cms.dto.param.base.ArticleBaseParamDto;
import com.link2room.cms.dto.param.manager.ArticleManagerParamDto;
import com.link2room.cms.dto.result.ArticleBaseDto;
import com.link2room.common.jpa.result.QueryResult;

/**
 * @author sqj88
 * @date 2017/12/1 16:50
 */
public interface IArticleFacadeService {
    ArticleBaseDto saveOrUpdateArticle(ArticleManagerParamDto articleManagerParamDto)throws Exception;

    QueryResult<ArticleBaseDto> listArticles(ArticleBaseParamDto articleBaseParamDto)throws Exception;

    ArticleBaseDto getArticle(ArticleBaseParamDto articleBaseParamDto)throws Exception;

    ArticleBaseDto getArticleForManager(ArticleBaseParamDto articleBaseParamDto)throws Exception;

    void deleteArticle(ArticleBaseParamDto articleBaseParamDto)throws Exception;
}
